module mod_en(
			//input
			oe,
			mod,
			sram_rd64,
			sram_rd128,
			sram_addr64,
			sram_addr128,
			end_flag64,
			end_flag128,
			jud_err64,
			jud_err128,
			
	      //output
	    	oe_64,
			oe_128,
			sram_rd,
			sram_addr,
			jud_err,
			end_flag
);

input	oe;
input	mod;
input	end_flag64;
input	end_flag128;
input	jud_err64,
		jud_err128;
input	sram_rd64,
		sram_rd128;
input	[12:0]	sram_addr64,
				sram_addr128;

output  oe_64;
output  oe_128;
output  end_flag;
output  sram_rd,
		jud_err;
output [12:0]	sram_addr;

assign oe_64     = oe?(mod?1'b0:1'b1):1'b0;
assign oe_128    = oe?(mod?1'b1:1'b0):1'b0;
assign end_flag  = oe_64 ? end_flag64  : end_flag128;
assign jud_err   = oe_64 ? jud_err64   : jud_err128;
assign sram_rd   = oe_64 ? sram_rd64   : sram_rd128;
assign sram_addr = oe_64 ? sram_addr64 : sram_addr128;

endmodule 
